using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class AvatarConfiguration : Base.BaseEntityConfiguration<Avatar>
    {
        public override void Configure(EntityTypeBuilder<Avatar> builder)
        {
             base.Configure(builder);

            builder.ToTable("avatar");
            // builder.Property(x => x.AvatarId).HasColumnName("avatar_id").HasMaxLength(2000).HasColumnOrder(1);
            builder.Property(x => x.OriginName).HasColumnName("origin_name").HasMaxLength(2000).HasColumnOrder(2);
            builder.Property(x => x.CurrentName).HasColumnName("current_name ").HasMaxLength(2000).HasColumnOrder(3);
            builder.Property(x => x.RelativePath).HasColumnName("relative_path ").HasMaxLength(200000).HasColumnOrder(4);
            builder.Property(x => x.FileSize).HasColumnName("file_size ").HasColumnOrder(5);
            builder.Property(x => x.FileType).HasColumnName("file_type").HasMaxLength(2000).HasColumnOrder(1);
        
        }
    }
}